package com.javaclimb.music.enums;


import lombok.Getter;

/**
 * @author 最酷的桃儿wjc
 * * @date 2022/5/15
 */
@Getter
public enum ResponseEnum {

    SUCCESS_LOGIN(1,"登录成功"),

    SUCCESS_INSERT(11,"添加成功"),

    ERROR_INSERT(10,"添加失败"),

    ERROR_UPDATE(20,"更新失败"),

    SUCCESS_UPDATE(21,"更新成功"),

    ERROR_DELETE(40,"删除失败"),

    SUCCESS_DELETE(41,"删除成功"),

    SUCCESS_UPLOAD(30,"文件上传成功"),

    ERROR_UPLOAD(31,"文件上传失败"),


    FAIL_CODE(0,"登录失败"),
    ;
    Integer code;
    String msg;

    ResponseEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
